package com.hst.web.sys.ui;

import com.hst.core.meta.MetaData;
import com.hst.core.meta.annotation.EField;
import com.hst.core.meta.annotation.EInfo;
import com.hst.core.meta.annotation.FieldQuery;
import com.hst.web.sys.entity.TUser;
import com.hst.web.sys.proxy.UserProxy;

/**
 * @Description:
 * @Author: luwenjie
 */
@EInfo(name="user", title="用户管理", entity = TUser.class ,proxy = UserProxy.class)
public class User extends MetaData{
	
	@EField(title="id",name="id",list=false,form=0)
	private String id;

	@EField(title="操作员号/账号",name="operatorNbr",query = FieldQuery.LIKE)
	private String operatorNbr;
	
	@EField(title="密码",name="password",list=false,editor="password",validate="required")
	private String password;

	@EField(title="别名",name="loginName",query = FieldQuery.LIKE)
	private String loginName;
	
	@EField(title="员工",name="employeeCode",editor="select.employee-all",viewer="employeeName",form=0)
	private String employeeCode;
	
	@EField(title="公司",mapped=false,editor="select.company-all",viewer="dict.company-all",form=0,query = FieldQuery.EQ)
	private String companyCode;
	
	@EField(title="承包商",mapped=false,editor="select.contractor-all",viewer="dict.contractor-all",form=0,query = FieldQuery.EQ)
	private String contractorCode;
	
	@EField(title="用户类型",name="userType",editor="select.userType",viewer="dict.userType",form=3,query = FieldQuery.EQ)
	private String userType;
	
	@EField(title="角色",mapped=false,viewer="dict.roles",editor="select.rolesLevel9",form=1)
	private String role;
	
	@EField(title="角色",list=false, mapped=false,viewer="dict.roles",editor="select.roles",form=0,query = FieldQuery.EQ)
	private String queryRole;
	
	@EField(title="有效标识",name="validflag",editor="select.status",viewer="dict.status",validate="required",query = FieldQuery.EQ)
	private String validflag;
	
	@EField(title="预约标识",name="appointmentFlag",editor="select.appointmentFlag",viewer="dict.appointmentFlag",validate="required",query = FieldQuery.EQ)
	private String appointmentFlag;
	
	public String getCompanyCode() {
		return companyCode;
	}

	public void setCompanyCode(String companyCode) {
		this.companyCode = companyCode;
	}

	public String getContractorCode() {
		return contractorCode;
	}

	public void setContractorCode(String contractorCode) {
		this.contractorCode = contractorCode;
	}

	public String getRole() {
		return role;
	}

	public void setRole(String role) {
		this.role = role;
	}

	public String getQueryRole() {
		return queryRole;
	}

	public void setQueryRole(String queryRole) {
		this.queryRole = queryRole;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getOperatorNbr() {
		return operatorNbr;
	}

	public void setOperatorNbr(String operatorNbr) {
		this.operatorNbr = operatorNbr;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

	public String getLoginName() {
		return loginName;
	}

	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}

	public String getEmployeeCode() {
		return employeeCode;
	}

	public void setEmployeeCode(String employeeCode) {
		this.employeeCode = employeeCode;
	}

	public String getUserType() {
		return userType;
	}

	public void setUserType(String userType) {
		this.userType = userType;
	}

	public String getValidflag() {
		return validflag;
	}

	public void setValidflag(String validflag) {
		this.validflag = validflag;
	}

	public String getAppointmentFlag() {
		return appointmentFlag;
	}

	public void setAppointmentFlag(String appointmentFlag) {
		this.appointmentFlag = appointmentFlag;
	}
	
}
